import request from '@/utils/request'

export function customerList(data) {
  return request({
    url: '/customerlist',
    method: 'post',
    params: data
  })
}

export function customerDetail(data) {
  return request({
    url: '/customerdetail',
    method: 'post',
    params: data
  })
}

export function createCustomer(data) {
  return request({
    url: '/customeradd',
    method: 'post',
    data
  })
}

export function updateCustomer(data) {
  return request({
    url: '/customerupdate',
    method: 'post',
    data
  })
}

export function deleteCustomer(data) {
  return request({
    url: '/customerdelete',
    method: 'post',
    data
  })
}
